﻿package com.snzflash.components.list  
{
	
	/**
	 * ...
	 * @author firsoff maxim, tel: +79222345364, skype: maxim.firsoff
	 */
	public class VList extends List
	{
		
		public function VList() 
		{
			super();
		}
		
		override protected function init():void 
		{
			super.init();
		};
		
		override protected function updateItems():void 
		{
			super.updateItems();
			var c:int = 0;
			////trace('updateItems : ' + _items.length, this);
			for each(var i:ListItemRenderer  in _items) 
			{
				if (c)
				{
					i.y = Math.round ( _items[c-1].y + _items[c-1].height + _verticalGap );
				}
				c++;	
				////trace(i.y);
			};
		};
	}

}